Skip to content

Test Algorithmic Drawing#30

Open
WardCunningham wants to merge 10 commits intomainfrom
coverage
Open

Test Algorithmic Drawing#30
WardCunningham wants to merge 10 commits intomainfrom
coverage

Conversation

@WardCunningham
Copy link
Member

We add a second Mocha test file specific to algorithmic drawing.

We reorganize graphviz.js such that key functions, tree and evalTree, are exposed during tests.

We add ReadMe notes for running tests with coverage rendering and viewed from github code spaces.

@WardCunningham
Copy link
Member Author

WardCunningham commented Oct 21, 2024

We are working our way through the Graphviz plugin's algorithmic drawing markup documented in this about page:
http://plugins.dojo.fed.wiki/more-about-algorithmic-markup.html

Nick and I cooked up a "mock federation" to support increased test coverage:
image

The evalTree method maintains a context which we can initialize with our mock probe. Here is where we fetch from the federation, real or mocked for testing:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant